<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>
<div class="detailsBox ">
<form action="<@url value='/rbadloan/update_payment' />" class="action-ajax-form" method="post">
	<div class="openBox">
		<h3><i class="jtIco"></i>收款信息</h3>
	  	<div class="detaiTab">
  			<table border="0" cellpadding="0" cellspacing="0" width="100%">
  				<tr>
    				<td class="bg" align="right" width="15%">回款金额:</td>
     				<td width="30%">${entity.payAmount}</td>
     				<td class="bg" align="right" width="15%">清收人:</td>
     				<td >${entity.liquiName}</td>
    			</tr>
  				<tr>
  	 				<td class="bg" align="right" width="15%">打款时间:</td>
     				<td width="30%"><#if entity.payTime??>${entity.payTime?string('yyyy-MM-dd')}</#if></td>
    				<td class="bg" align="right" width="15%">打款人:</td>
     				<td width="30%">${entity.payee}</td>
    			</tr>
    		</table>
    	</div>
    	<!-- 上传附件 begin -->
		<div class="openBox action-ajax-load" data-url="<@url value='/rbadloan/upload_file?recordId=${entity.id}&isupload='/>" id="file_uploader"></div>
		<!-- 上传附件 end -->
    </div>
    <div class="openBox">
		<h3><i class="jtIco"></i>还款审核</h3>
	  	<div class="detaiTab">
	  			<table border="0" cellpadding="0" cellspacing="0" width="100%">
		  			<tr>
	    				<td class="bg" align="right" width="15%">本次回款金额:</td>
	    				<td width="35%">${entity.thisPaymentPrincipal}
	    				<input type="hidden" name="id" value="${entity.id}"/>
	    				<input type="hidden" name="thisPaymentPrincipal" value="${entity.thisPaymentPrincipal}"/>
	    				</td>
	    				<td class="bg" align="right" width="15%">收款时间:</td>
	    				<td ><#if entity.thisPaymentDate??>${entity.thisPaymentDate?string('yyyy-MM-dd')}</#if>
	    				<input type="hidden" name="thisPaymentDate" value="${entity.thisPaymentDate}"/>
	    				</td>
	    			</tr>
	    			<tr>
	    				<td class="bg" align="right" width="15%">实际收款账户:<span style="color: red;" class="lh30 ml10">*</span></td>
	    				<td colspan="3">
						<#if type!="DETAIL">
						<select name="payAccount" id="payAccount">
							 <option value="">--请选择--</option>
		    				<#if bankAccountList?exists>  
				                <#list bankAccountList as key>   
				                   <option <#if key==entity.payAccount>selected="selected"</#if> value="${key}">${key}</option>
				                </#list>  
				            </#if> 
	    				</select>
	    				<#else>
	    				${entity.payAccount}
				        </#if> 
	    				
						</td>
	    			</tr>
	    			<#if type!="DETAIL">
	    			<tr>
	    				<td class="bg" align="right" width="15%"></td>
	    				<td colspan="3">
	    					<input type="submit" value="保存" class="btn_auto_30 btn_blue" />
	    				</td>
	    			</tr>
	    			</#if> 
	    		</table>
	  	</div>
	</div>
	</form>
</div>

